Resorted thread